//
//  NSPopUpButton+WCExtensions.m
//  WabbitCode
//
//  Created by William Towe on 2/5/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "NSPopUpButton+WCExtensions.h"


@implementation NSPopUpButton (WCExtensions)
- (BOOL)selectItemWithRepresentedObject:(id)object; {
	for (NSMenuItem *item in [self itemArray]) {
		if ([[item representedObject] isEqualTo:object]) {
			[self selectItem:item];
			return YES;
		}
	}
	return NO;
}
@end
